Skip to content

Tcool/audio switcher (take 2) - #269

Open
tomcool420 wants to merge 8 commits into
NotProtonNot:mainfrom
tomcool420:tcool/AudioSwitcher
Open

tomcool420 wants to merge 8 commits into
NotProtonNot:mainfrom
tomcool420:tcool/AudioSwitcher

Conversation

@tomcool420

@tomcool420 tomcool420 commented Oct 28, 2026 •

Copy link
Copy Markdown

This is a little extra helper that adds a watcher to NotProton that checks when the default audio device changes on the Mac side.

Basically:

  • It registers a listener to CoreAudio
  • If change is detected, it gets the UID
  • Then queries Wine reg to get the guid it has the device registered under
  • Checks wine considers the device active
  • set the defaults in wine so games there that do listen to the change pick it up (tested in zero company)

This works with roaming AirPods

Caveat: unfortunately, wine only makes devices active at wine boot. This means that audio devices HAVE to be connected at game start. This means if you want to use your AirPods, make sure they are connected to the Mac at the time (they can disconnect after and will reconnect fine)

@tomcool420 tomcool420 changed the title [WiP] Tcool/audio switcher (take 2) Tcool/audio switcher (take 2) Oct 28, 2026
@NotProtonNot

Copy link
Copy Markdown
Owner

'Caveat: unfortunately, wine only makes devices active at wine boot. '

I'll make a plugin to fix this!

Thomas Cool added 8 commits November 1, 2026 22:42
audiowatch listens to CoreAudio devices changes and then uses wine reg to change that in the running wineserver. this is only IF the device existed before wine was started (that is a relatively hard limit i think)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants